#ifndef VSANIMMAINFUNCTION_H
#define VSANIMMAINFUNCTION_H
#include "VSAnimBaseFunction.h"
namespace VSEngine2
{
	class VSGRAPHIC_API VSAnimMainFunction : public VSAnimBaseFunction
	{
		//RTTI
		DECLARE_RTTI;
		//PRIORITY
		
	public:
		virtual ~VSAnimMainFunction();
		virtual bool UpdateEx(double dAppTime);

		VSAnimMainFunction(const VSUsedName & ShowName,VSAnimTree * pAnimTree);

		//void CreateNode(const VSString & NodeName,unsigned int uiNodeType);
	protected:
		VSAnimMainFunction();

	public:
		static bool RegisterMainFactory();

	private:
		static bool InitialClassFactory();	
		static VSObject * FactoryFunc();
		static bool ms_bRegisterMainFactory;


	};
	typedef VSPointer<VSAnimMainFunction> VSAnimMainFunctionPtr;
}
#endif